package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel
public class AppRoleUpdateDTO {

    @NotNull(message = "主键不可以为空")
    @Range(min = 1, message = "主键为大于或等于0的正整数")
    @ApiModelProperty(value = "主键不可以为空",required = true)
    private Integer id;

    @NotBlank(message = "应用角色名称不可以为空")
    @Length(min = 1, max = 30, message = "应用角色名称长度需要在1-30个字之间")
    @ApiModelProperty(value = "应用角色名称")
    private String roleName;

    @ApiModelProperty(value = "应用列表")
    private List<AppDTO> appList;

    public AppRoleUpdateDTO() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public List<AppDTO> getAppList() {
        return appList;
    }

    public void setAppList(List<AppDTO> appList) {
        this.appList = appList;
    }
}
